package cn.qingyun.gis.modules.express.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 快递勘误上传附件
 * </p>
 *
 * @author miyunguo
 * @since 2023-07-28
 */
@Data
@TableName("express_attachment")
@ApiModel(value="ExpressAttachment对象", description="快递勘误上传附件")
public class ExpressAttachment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "快递地址勘误主键id")
    @Excel(name = "express_proofread表主键id", width = 15)
    @TableField("express_proofread_id")
    private String expressProofreadId;

    @ApiModelProperty(value = "附件信息")
    @Excel(name = "图片base64地址", width = 15)
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "修改时间")
    @Excel(name = "修改时间", width = 15)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("upload_time")
    private Date uploadTime;


}
